package com.fescoservice.model;
// default package



/**
 * BBSId entity. @author MyEclipse Persistence Tools
 */

public class BBSId  implements java.io.Serializable {


    // Fields    

     private String boardCode1;
     private String boardCode2;
     private String boardCode3;
     private Long boardSeq;


    // Constructors

    /** default constructor */
    public BBSId() {
    }

    
    /** full constructor */
    public BBSId(String boardCode1, String boardCode2, String boardCode3, Long boardSeq) {
        this.boardCode1 = boardCode1;
        this.boardCode2 = boardCode2;
        this.boardCode3 = boardCode3;
        this.boardSeq = boardSeq;
    }

   
    // Property accessors

    public String getBoardCode1() {
        return this.boardCode1;
    }
    
    public void setBoardCode1(String boardCode1) {
        this.boardCode1 = boardCode1;
    }

    public String getBoardCode2() {
        return this.boardCode2;
    }
    
    public void setBoardCode2(String boardCode2) {
        this.boardCode2 = boardCode2;
    }

    public String getBoardCode3() {
        return this.boardCode3;
    }
    
    public void setBoardCode3(String boardCode3) {
        this.boardCode3 = boardCode3;
    }

    public Long getBoardSeq() {
        return this.boardSeq;
    }
    
    public void setBoardSeq(Long boardSeq) {
        this.boardSeq = boardSeq;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof BBSId) ) return false;
		 BBSId castOther = ( BBSId ) other; 
         
		 return ( (this.getBoardCode1()==castOther.getBoardCode1()) || ( this.getBoardCode1()!=null && castOther.getBoardCode1()!=null && this.getBoardCode1().equals(castOther.getBoardCode1()) ) )
 && ( (this.getBoardCode2()==castOther.getBoardCode2()) || ( this.getBoardCode2()!=null && castOther.getBoardCode2()!=null && this.getBoardCode2().equals(castOther.getBoardCode2()) ) )
 && ( (this.getBoardCode3()==castOther.getBoardCode3()) || ( this.getBoardCode3()!=null && castOther.getBoardCode3()!=null && this.getBoardCode3().equals(castOther.getBoardCode3()) ) )
 && ( (this.getBoardSeq()==castOther.getBoardSeq()) || ( this.getBoardSeq()!=null && castOther.getBoardSeq()!=null && this.getBoardSeq().equals(castOther.getBoardSeq()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getBoardCode1() == null ? 0 : this.getBoardCode1().hashCode() );
         result = 37 * result + ( getBoardCode2() == null ? 0 : this.getBoardCode2().hashCode() );
         result = 37 * result + ( getBoardCode3() == null ? 0 : this.getBoardCode3().hashCode() );
         result = 37 * result + ( getBoardSeq() == null ? 0 : this.getBoardSeq().hashCode() );
         return result;
   }   





}